/**
 * @author zhengjiachao
 * @since 2017-3-27
 */
BCP.bill.control.Input = function(){
    BCP.bill.control.Input.superclass.constructor.call(this);
};

COM.util.defineClass(BCP.bill.control.Input, ADF.control.Input,{

    getEditpart : function(){
        var editpart = function(){
            editpart.superclass.constructor.call(this);
        };
        COM.util.defineClass(editpart, BCP.bill.control.Input.superclass.getEditpart.call(this), {
            propertyChange:function(evt){
                editpart.superclass.propertyChange.call(this,evt);
                if(AGEF.PropertyChangeEvent.UPDATE_EVENT==evt.getType()){
                    if(BCP.bill.model.InputModel.PROPERTY_BINDING==evt.getPropertyName()){
                        this.getFigure().getWidget().setBinding(evt.newValue);
                    }
                }
            }
        });
        return editpart;
    },

    getModel : function(){
        return BCP.bill.model.InputModel;
    },

    getDomControl:function(){
        return BCP.bill.domControl.Input;
    }

});